import alova from '@/utils/alova'

// 规则列表
export const menuList = () => {
  return alova.Get('/sys/menu/listjson')
}

// 编辑
export const menuInfo = (id) => {
  return alova.Get(`/sys/menu/info/${id}`)
}

// 保存
export const menuSave = (data) => {
  return alova.Post('/sys/menu/save', data)
}

// 修改
export const menuUpdate = (data) => {
  return alova.Post('/sys/menu/update', data)
}

// 删除
export const menuDelete = (data) => {
  return alova.Post('/sys/menu/delete', data)
}
